package com.bkgy.modularbx.slip.mapper;

import com.bkgy.modularbx.slip.entity.SlipEvent;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface SlipDataRepository extends MongoRepository<SlipEvent, String> {
    List<SlipEvent> findByRollId(String rollId);
    List<SlipEvent> findByTimestampBetween(LocalDateTime start, LocalDateTime end);
    long countByRollIdAndTimestampBetween(String rollId, LocalDateTime start, LocalDateTime end);
}
